define(['js/module2/model', 'js/module2/view'], function (Model, View) {

    var controller = function (name) {
        var model = new Model();
        name && model.set({
            name:name
        });
        var view = new View({model:model});
        view.render();

        controller.onRouteChange = function () {
            view.undelegateEvents();
        };
    };

    return controller;
});